package method;

import node.Node;

public class headAdd {
    public static void work(Node head, Node addNode) {
        addNode.prev = head;
        addNode.next = head.next;
        head.next.prev = addNode;
        head.next = addNode;
    }
}
